package com.bdcom.autotest.interaction.bean;

import java.sql.Date;

public class DBInfoBean {
	
	public static final String STATUS_PASS = "-1";
	
	private Long assemblyId;
	private String deviceCode;
	private String sn2;  // assemblyproduct->  productNo
	private Long subWorkOrderId;
	private String status;			// -1 为测试通过
	private String productType;   //物料编码
	private String lineFlag;   // 行号
	private Long workOrderId;
	
	private String workOrderNo;
	private Date create_Time;
	
	private String  prodType;  // 设备类型   ES6806-MSU-I
	private String prodDscr;   //S6800-06E专用I型主控板 ；监控口是CLI线序
	
	public DBInfoBean(){
		
	}

	public Long getAssemblyId() {
		return assemblyId;
	}

	public void setAssemblyId(Long assemblyId) {
		this.assemblyId = assemblyId;
	}

	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	public String getSn2() {
		return sn2;
	}

	public void setSn2(String sn2) {
		this.sn2 = sn2;
	}

	public Long getSubWorkOrderId() {
		return subWorkOrderId;
	}

	public void setSubWorkOrderId(Long subWorkOrderId) {
		this.subWorkOrderId = subWorkOrderId;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getProductType() {
		return productType;
	}

	public void setProductType(String productType) {
		this.productType = productType;
	}

	public String getLineFlag() {
		return lineFlag;
	}

	public void setLineFlag(String lineFlag) {
		this.lineFlag = lineFlag;
	}

	public Long getWorkOrderId() {
		return workOrderId;
	}

	public void setWorkOrderId(Long workOrderId) {
		this.workOrderId = workOrderId;
	}

	public String getWorkOrderNo() {
		return workOrderNo;
	}

	public void setWorkOrderNo(String workOrderNo) {
		this.workOrderNo = workOrderNo;
	}

	public Date getCreate_Time() {
		return create_Time;
	}

	public void setCreate_Time(Date create_Time) {
		this.create_Time = create_Time;
	}

	public String getProdType() {
		return prodType;
	}

	public void setProdType(String prodType) {
		this.prodType = prodType;
	}

	public String getProdDscr() {
		return prodDscr;
	}

	public void setProdDscr(String prodDscr) {
		this.prodDscr = prodDscr;
	}

	
	@Override
	public String toString() {
		
		if( sn2==null ||sn2.length()==0   ) {
			sn2 = deviceCode;
		}
		
		return "[ 序列号=" + sn2 + ", 物料编码=" + productType + ", 行号="
				+ lineFlag + ", 工单号=" + workOrderNo + ", 设备类型=" + prodType + " ,状态="+status+"]";
	}
	
	
	
	
}
